package com.yunhe.abnormal.service.data;

import com.yunhe.abnormal.domain.data.AbnormalEventRecordMeas;
import com.yunhe.common.model.PageParam;

import java.util.List;
import java.util.Optional;

public interface AbnormalEventRecordMeasService {
    AbnormalEventRecordMeas create(AbnormalEventRecordMeas abnormalEventRecordMeas);

    Iterable<AbnormalEventRecordMeas> create(List<AbnormalEventRecordMeas> abnormalEventRecordMeasList);

    void delete(Long id);

    AbnormalEventRecordMeas update(AbnormalEventRecordMeas abnormalEventRecordMeas);

    AbnormalEventRecordMeas update(Long id,
                                   Optional<Long> recordId,
                                   Optional<Long> pointNumber,
                                   Optional<Double> value);

    Iterable<AbnormalEventRecordMeas> retrieve(Optional<Long> recordId,
                                               Optional<List<Long>> pointNumber,
                                               PageParam pageParam);
}
